#include <stdio.h>
#include<stdlib.h>
#include<sys/types.h>
#include<unistd.h>

int main()
{
    pid_t pid = fork();
    
    if(pid==0)
    {
        printf("我的ID是：%d,我父进程的ID是 %d\n",getpid(),getppid());
        sleep(60);
    }
    else
    {
        printf("我的ID是：%d,我父进程的ID是 %d\n",getpid(),getppid());

        exit(0);
    }
    return 0;
}

